﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

using ZhimeiSoft.ShowCall.Server.BLL.Interface;
using ZhimeiSoft.ShowCall.Server.Factory;

namespace ZhimeiSoft.ShowCall.Server.Proxy.Impl
{
    public class BusinessProxyImpl
    {
        private ICustomerBLL customerBll;
        private ICustomerServiceItemBLL customerServiceItemBll;

        public BusinessProxyImpl()
        {
            customerBll = BllFactory.CreateCustomerBll();
            customerServiceItemBll = BllFactory.CreateCustomerServiceItemBll();
        }

        public DataSet GetCustomerByPhone(string phoneNumber)
        {
            return customerBll.GetCustomerByPhone(phoneNumber);
        }

        public DataSet GetCustomerServiceItemByCustomerID(int customerID)
        {
            return customerServiceItemBll.GetCustomerServiceItemByCustomerID(customerID);
        }
    }
}
